/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
/*
 * utils.h
 * Copyright (C) chemek anouar 2012 <anouar.chemek@esprit.tn>
 *
 * WiScramb is free software: you can redistribute it and/or modify it
 * under the terms of the GNU General Public License as published by the
 * Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * WiScramb is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 * See the GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License along
 * with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
#ifndef _UTILS_H
#define _UTILS_H
#include <sys/socket.h>
#include <sys/ioctl.h>
#include <stdio.h>
#include <linux/if_ether.h>
#include <string.h>
#include <net/if.h>
#include <linux/if_packet.h>
#include <stdlib.h>
#include <netinet/in.h>
#include <unistd.h>


#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
//#include <linux/wireless.h>
#include "ieee80211_header.h"

void print_mac_header_packet ( struct ieee80211_mac_header *mac_h );
void print_radiotap_header_packet ( struct ieee80211_radiotap_header *eh );
void * freq_hopper(void *param);
void print_station_adress(u_int8_t *adress);
void ieee802_11_parse_elems(u_int8_t *start, size_t len,
    struct ieee802_11_elems *elems);

//int ioctl_set_freq(int freq);
#endif
